package com.learn.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author tuzhijin
 * @version Id: OrderService.java, v 0.1 2020/8/16 09:35 tuzhijin Exp $$
 */
@Service
@Transactional
public class OrderService {

//    @Autowired
    private UserService userService;

//    @Autowired
//    public OrderService(UserService userService) {
//        this.userService = userService;
//    }

    @Autowired
    public void setUserService(UserService userService) {
        this.userService = userService;
    }

    public void test(){
        System.out.println("===233====");
    }
}
